<?php

namespace common\models\credit_public_tables;

use Yii;

/**
 * This is the model class for table "{{%sl_car_series_qczj}}".
 *
 * @property int $cs_id
 * @property string $cs_car_brand 品牌
 * @property string $cs_car_text 车型
 * @property string $cs_car_type 车辆类型
 * @property string $cs_car_price1
 * @property string $cs_car_price2
 * @property string $cs_car_url
 */
class SlCarSeriesSyc extends \yii\db\ActiveRecord
{
    /**
     * {@inheritdoc}
     */
    public static function tableName()
    {
        return '{{%sl_car_series_syc}}';
    }

    /**
     * @return \yii\db\Connection the database connection used by this AR class.
     */
    public static function getDb()
    {
        return Yii::$app->get('db_public');
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['cs_car_price1', 'cs_car_price2'], 'number'],
            [['cs_car_brand', 'cs_car_text', 'cs_car_type'], 'string', 'max' => 100],
            [['cs_car_url'], 'string', 'max' => 255],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'cs_id' => Yii::t('app', 'Cs ID'),
            'cs_car_brand' => Yii::t('app', '品牌'),
            'cs_car_text' => Yii::t('app', '车型'),
            'cs_car_type' => Yii::t('app', '车辆类型'),
            'cs_car_price1' => Yii::t('app', 'Cs Car Price1'),
            'cs_car_price2' => Yii::t('app', 'Cs Car Price2'),
            'cs_car_url' => Yii::t('app', 'Cs Car Url'),
        ];
    }
}
